cmake_minimum_required(VERSION 2.6.4)

project(pika)

FILE(GLOB_RECURSE LOCAL_CPP_FILES "./*.cc")
FILE(GLOB_RECURSE LOCAL_C_FILES "./*.c")

set(CMAKE_CXX_COMPILER g++)

include_directories(
        ${CMAKE_SOURCE_DIR}/
        ${CMAKE_SOURCE_DIR}/include/
        ${CMAKE_SOURCE_DIR}/third/
        ${CMAKE_SOURCE_DIR}/tools/
        ${CMAKE_SOURCE_DIR}/utils/
        ${CMAKE_SOURCE_DIR}/third/slash/

        ${CMAKE_SOURCE_DIR}/third/rocksdb/
        ${CMAKE_SOURCE_DIR}/third/rocksdb/include/
        ${CMAKE_SOURCE_DIR}/third/rocksdb/db/
        ${CMAKE_SOURCE_DIR}/third/rocksdb/logging/
        ${CMAKE_SOURCE_DIR}/third/rocksdb/memory/
        ${CMAKE_SOURCE_DIR}/third/rocksdb/memtable/
        ${CMAKE_SOURCE_DIR}/third/rocksdb/monitoring/
        ${CMAKE_SOURCE_DIR}/third/rocksdb/options/
        ${CMAKE_SOURCE_DIR}/third/rocksdb/port/
        ${CMAKE_SOURCE_DIR}/third/rocksdb/table/
        ${CMAKE_SOURCE_DIR}/third/rocksdb/util/
        ${CMAKE_SOURCE_DIR}/third/rocksdb/file/
        ${CMAKE_SOURCE_DIR}/third/rocksdb/cache/

        ${CMAKE_SOURCE_DIR}/third/pink/
        ${CMAKE_SOURCE_DIR}/third/redisdb/
        ${CMAKE_SOURCE_DIR}/third/glog/src/
        ${CMAKE_SOURCE_DIR}/third/glog/src/windows/
        ${CMAKE_SOURCE_DIR}/third/dory/include/
        ${CMAKE_SOURCE_DIR}/third/blackwidow/include/
        ${CMAKE_SOURCE_DIR}/third/gperftools-2.6.3/src/
        ${CMAKE_SOURCE_DIR}/third/libunwind-1.3.1/src/
        ${CMAKE_SOURCE_DIR}/third/blackwidow/


)





add_executable(pika
        ${LOCAL_CPP_FILES}
        ${LOCAL_C_FILES}
        )
